home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 37 lines | [TEXT/GEOL] |
- Item 8506615 11-July-89 20:31
-
- From: D2215 Dac SW, Wilma Blair, PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- cc: MACDTS Macintosh Developer Technical Supt.
-
- Sub: Install CoHandler Problem
-
- I am having a problem with using InstallCohandler.
-
- When I call InstallCohandler for a view, everything works fine except that
- the document and application menus are not enabled. The view's fNextHandler is
- NIL so nothing gets back to the document or application.
-
- I end up having to InstallCohandler for the document and also for the
- application to enable all of the menus that should be enabled.
-
- I also have to Override Free for the view, document and application so that it
- calls InstallCoHandler with addit false to remove from the Idle chain. Then it
- calls Inherited Free. Otherwise, the debugger is entered with a message
- stating the handle or Object is already freed.
-
- This works ok up until the application is closed. The it crashes into TMON
- with some message about re-entry (only when I have installed the application
- into the Idle Chain).
-
- What is the proper way to install a view into the Idle Chain so that all of
- menus are enabled and nothing crashes when quiting the program?
-
- Regards, Les Caudle
-
-
-
-
-